<?php
$postData = unserialize(urldecode($_GET['postdata']));
$message = urldecode($_GET['message']);
$url = urldecode($_GET['url']);
$msgType = $_GET['msgtype'];
?>

<html>
    <head>
        <title>redirect to ...</title>
        <script type="text/javascript" src="/js/jquery.1.8.2.min.js"></script>
    </head>
    <body>
        <form id="form" action="<?= $url ?>" method="post">
            <?php foreach ($postData as $key => $value) { ?>

                <input type="hidden" name ="<?= $key ?>" value="<?= $value ?>" />
            <?php } ?>
            <input type="hidden" name ="msgtype" value="<?= $msgType ?>" />
            <input type="hidden" name ="message" value="<?= $message ?>" />
        </form>
        <script type="text/javascript">
            $(function(){

               $('#form').submit();
            });
        </script>
    </body>

</html>